package com.mycode.prototype05;

import com.mycode.prototype05.shallow.Attachment;
import com.mycode.prototype05.shallow.WeeklyLog;

public class Bootstrap2 {

    public static void main(String[] args) {
        WeeklyLog log = new WeeklyLog();
        Attachment attachment = new Attachment();
        log.setAttachment(attachment);

        WeeklyLog newLog = log.clone();
        System.out.println("周报是否相同？" + (log == newLog));
        System.out.println("附件是否相同？" + (log.getAttachment() == newLog.getAttachment()));
    }
}
